import {tableOptBtnConfig} from "../table";
import {entityType_asset} from "@/config/common";

export default {
  "tableId": "dataModel",
  "name": "接口模型",
  "columns": [
    {
      label: '模型名称',
      children: [
        {
          key: 'name',
        },
      ]
    },
    {
      label: '实现版本',
      children: [
        {
          key: 'version',
        },
      ],
    },
    {
      label: '别名',
      children: [
        {
          key: 'displayName',
        },
      ],
    },
    {
      label: '备注',
      children: [
        {
          key: 'remarks',
        },
      ],
    },
    {
      label: '更新时间',
      width: 100,
      children: [
        {
          updatedDate: true
        }
      ],
    },
    {
      "label": "操作",
      "operation": true,
      "width": 150,
      "children": [
        {
          "button": true,
          type: tableOptBtnConfig.edit.type,
        },
        {
          "button": true,
          type: tableOptBtnConfig.delete.type,
          class: 'hover-danger',
        }
      ]
    }
  ],
  "filters": [

    {
      "fieldType": "input",
      key: 'name',
      label: '模型名称',
    },
    {
      "fieldType": "input",
      key: 'version',
      label: '实现版本',
    },
  ]
}
